地図:山口県

説明

指定した座標に山口県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+8,y,c,0,0,0,0,0,0,0,1);
uart(n,14,3,x+16,y,c,14,15,31,63,126,126,254,254);
uart(n,14,3,x+24,y,c,0,0,0,0,0,0,0,64);
uart(n,14,3,x+32,y,c,0,0,0,0,0,0,0,192);
y=y+8;
uart(n,14,3,x,y,c,31,7,127,127,127,127,63,63);
uart(n,14,3,x+8,y,c,7,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,193,129,129,207,255,255,255,255);
uart(n,14,3,x+32,y,c,192,192,192,224,224,224,248,252);
y=y+8;
uart(n,14,3,x,y,c,63,255,255,127,127,57,48,32);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,253,248);
uart(n,14,3,x+16,y,c,255,255,255,255,255,248,0,0);
uart(n,14,3,x+24,y,c,255,255,255,255,127,31,15,7);
uart(n,14,3,x+32,y,c,252,252,248,248,248,252,248,240);
y=y+8;
uart(n,14,3,x,y,c,64,0,0,0,0,0,0,0);
uart(n,14,3,x+8,y,c,16,0,0,0,0,0,0,0);
uart(n,14,3,x+24,y,c,3,0,0,0,0,0,0,0);
uart(n,14,3,x+32,y,c,224,224,48,0,0,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る